package com.sendi.system.util.common;

import javax.servlet.http.HttpServletRequest;

public class URLhelper {
	
	/*
	 * 获取服务路径
	 */
	public static String getServerPath(HttpServletRequest request)
	{
		String path = request.getContextPath();
		String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
		return basePath;
	}

}
